import QtQuick 2.0

Item {
    Item {
        B { id:b1 }
        Item {
            A {
                id:a1
                Component.onCompleted : b1.x = 1 //can access
            }
            Component.onCompleted:  {
                //a_item.x = 1; # cannot access this id of A.qml
                a1.x = 1
            }
        }
    }
}


